package com.engine4cloud.tdf.education.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.engine4cloud.tdf.common.data.datascope.TdfBaseMapper;
import com.engine4cloud.tdf.education.dto.query.EduResourceQueryDTO;
import com.engine4cloud.tdf.education.dto.result.EduResourceResultDTO;
import com.engine4cloud.tdf.education.entity.EduResourceEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EduResourceMapper extends TdfBaseMapper<EduResourceEntity> {
    IPage<EduResourceResultDTO> pageList(Page<EduResourceEntity> page, @Param("dto") EduResourceQueryDTO dto);

    List<EduResourceResultDTO> findListByCourse(@Param("courseCode") String courseCode);
}